from django.urls import path, include
from rest_framework import routers
from apps.user.views import LoginView, UserModelViewSets, UserAvatarProfileView, UserCurrentUserView

router = routers.DefaultRouter()
router.register(r'users', UserModelViewSets)

urlpatterns = [
    path(r"", include(router.urls)),
    path("login", LoginView.as_view(), name="login"),
    path(r'users/profile', UserAvatarProfileView.as_view(), name='profile'),
    path(r'users/current', UserCurrentUserView.as_view(), name='users-current'),
]
